package com.replication.log;

/**
 * @author fire
 * @date 15/10/26.
 */
public class LoggerFactory {
    public LoggerFactory() {
    }

    public static Logger getLogger(String name) {
        try {
            Class.forName("org.slf4j.Logger");
            return new Slf4jLogger(name);
        } catch (ClassNotFoundException var2) {
            return new JdkLogger(name);
        }
    }

    public static Logger getLogger(Class<?> claxx) {
        return getLogger(claxx.getName());
    }
}
